home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
print
/
masdir54.arj
/
DRDOS.EXE
/
SDLFINIS.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-02-15
|
3KB
|
72 lines
ECHO Off
: SDLFINIS.BAT for DR DOS Version 5.0
IF NOT .%3 == . GOTO PARMSOK
ECHO Please start the setup program by running SDLSETUP.
GOTO QUIT
:PARMSOK
Echo * * *
:TITLE ... now another check on the SDL version to avoid problems.
IF NOT .%1 == .54 GOTO VERSION
IF NOT .%2 == .55 GOTO VERSION
sdl_get B
ECHO * * *
ECHO This is the last section:
ECHO * * *
ECHO You may enter your own titles on the first two header lines,
ECHO or restore the original lines. These titles will display or not
ECHO depending on the Hdr default setting. They can be toggled on
ECHO or off with the /H option. If you have changed the titles and
ECHO want to restore the original, select Y. Changed or restored
ECHO titles do not have the highlighted capital letters.
ECHO * * *
: ****************************
Echo M100,+%3,fd>>sdlsetup.txt
sdl_get N "Do you want to change the titles (N,y,cr)? "
if errorlevel 90 goto end
if NOT errorlevel 89 goto end
:REM Better make another check on SDL Version (see REM below).
SDL /!
IF NOT ERRORLEVEL %1 GOTO VERSION
IF ERRORLEVEL %2 GOTO VERSION
REM Check the size of SDL.COM
sdl_get F SDL.COM
IF NOT ERRORLEVEL 1 GOTO :SIZEOK
REM The size must match what is passed in %3, else version is incorrect.
IF NOT .%3 == .%GET% GOTO VERSION
:SIZEOK But we must have the following file...
IF NOT EXIST SDLTITLE.COM GOTO NOTITLE
ECHO * * *
ECHO Your two title lines are now...
SDL /H-/C-
ECHO To restore the original titles, simply press ENTER at each prompt.
SDLTITLE
REM Positive errorlevel means SDLTITLE did not work for some reason.
IF ERRORLEVEL 1 GOTO NOTITLE
: ***************************
ECHO RSDLTITLE.TXT,100>>SDLSETUP.TXT
: ECHO L 103>>SDLSETUP.TXT
: ECHO N SDL.COM>>SDLSETUP.TXT
: ECHO R CX>>SDLSETUP.TXT
:END
REM The value in the next line is critical to the SDL Version!
: ***********************************
ECHO M0fd,+%3,0>>SDLSETUP.TXT
ECHO WSDL.COM,0,%3-1>>SDLSETUP.TXT
Echo Q>>SDLSETUP.TXT
SDLDEBUG
REM BATch commands end here, the rest are error messages.
:NOTITLE
ECHO The file SDLTITLE.COM was not found or did not complete properly.
Echo If you want to customize the titles in SDL.COM you must copy
Echo SDLTITLE.COM from the original MASDIR disk and run SDLSETUP again.
GOTO END
:VERSION
ECHO The version of SDL is incompatible with this version of SDLSETUP.
Echo Please copy compatible versions from your original disk and try again.
:QUIT
pause
IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
if exist menu.bat menu
SET GET=
ECHO Exiting to DOS ...